

.head{                                                           /*用户选择的头像会显示在这里*/
    width: 50px;
    height: 50px;
    clip-path: circle(25px at center);
    background-color: #FF1361;
}
/* 所有内容隐藏 */
.page{
    display: none;
}
#viewport{
    padding-left: 250px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#content{
    width: 100%;
    position: relative;
    margin-right: 0;
}

/* 侧边栏样式 */
#sidebar{
    z-index: 100;
    position: fixed;
    left: 250px;
    width: 250px;
    height: 100%;
    overflow-y: auto;
    margin-left: -250px;
    background: #37474f;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#sidebar header{
    background-color: #263238;
    font-size: 20px;
    text-align: center;
}

#sidebar header a{
    color: #fff;
    display: block;
    text-decoration: none;
}

#sidebar header a:hover{
    color: rgb(245, 151, 151);
}

#sidebar .nav a{
    font-size: 20px;
    background: none;
    color: #fff;
    padding:0 50px;
    text-decoration: none;
    border-bottom: 1px dotted rgba(52,255,185,0.2);
}

#sidebar .nav a:hover{
    background: none;
    color: lightskyblue;
}
.fas{
    margin-right: -14px;
}
*{
    margin: 0;
    padding: 0;
}
/*底部水滴*/
.wave{
    /* 弹性布局 */
    display: flex;
    /* 设置投影 */
    filter: drop-shadow(120px 0 0 rgba(149,191,218,0.5));
    position: absolute;
    bottom: 0;
}
.wave div{
    position: relative;
    width: 40px;
    height: 200px;
    margin: 10px;
    border-radius: 3px;
    overflow: hidden;
}
.wave div::before{
    content: "";
    width: 300%;
    height: 100%;
    background-color: rgba(149,191,218,1);
    position: absolute;
    left: -100%;
    top: 50%;
    /* 执行动画：动画名 时长 贝塞尔曲线 无限播放 来回轮流播放 */
    animation: upDown 2s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate, wave 2s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
    /* 通过var函数调用自定义属性--d1、--d2，设置动画延迟 */
    animation-delay: var(--d1), var(--d2);
}

/* 定义动画 */
@keyframes upDown {
    0%{
        top: 70%;
    }
    100%{
        top: 30%;
    }
}
@keyframes wave {
    0%{
        transform: rotateZ(-20deg);
    }
    100%{
        transform: rotateZ(20deg);
    }
}
/*头像选择css*/
.circle-container {
    position: relative;
    width: 100px; /* 缩小容器 */
    height: 100px; /* 缩小容器 */
    overflow: hidden;
    border-radius: 50%;
    background-color: #f0f0f0;
    cursor: pointer;
}

input[type="file"] {
    display: none;
}

#preview {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片填充整个容器并保持纵横比 */
}
table {
    border-collapse: collapse;
    margin: 50px auto;
    width: 400px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000000;
}

caption {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 5px;
}

input[type="submit"] {
    background-color: #4caf50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

input[type="submit"]:hover {
    background-color: #45a049;
}
.error {
    color: red;
}